package com.lmk.mkcc.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PhoneRegisterDto {
    @Pattern(message = "电话格式不正确！", regexp = "^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\\d{8}$")
    private String mobile; //'18244444444',
    @Size(min = 6, max = 12, message = "密码必须是6 ~ 12位！")
    private String password; //'123456',
    @NotNull
    private String smsCode; //'',
    @NotNull
    private Integer regChannel; //1 //注册的渠道
    // 推荐邀请码
    private String registerCode;
}
